<%-- 
    Document   : followupList
    Created on : 23 Nov, 2012, 11:44:11 AM
    Author     : sagar
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../common/script.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../common/title.jsp" %>
    </head>
    <body>
        <%@include file="../common/header.jsp" %>
        <%@include file="../common/menu.jsp" %>
        <div class="in_02">
            <%@include file="../common/message.jsp" %>
            <form id="form1" name="form1"  method="POST" cssClass="userInputForm" >
                <h1><spring:message code="title.followupList"/></h1>
                <fieldset>
                    <legend>Select Disposition</legend>
                    <table class="formTable">
                        <td>Disposition:<br/><select name="dispositionId" id="dispositionId" style="margin-bottom: 5px">
                                <option value="0">-</option>
                                <c:forEach items="${dispositionList}" var="dispositionItem">
                                    <option value="${dispositionItem.dispositionId}" <c:if test="${dispositionItem.dispositionId==dispositionId}">selected</c:if>>${dispositionItem.dispositionName}</option>
                                </c:forEach>
                            </select>
                        </td>
                        <td><input  type="submit" value="Go" name="Go"  style="margin:13px 0 0 0;"/></td> 
                    </table>
                </fieldset>
                <h1>FollowUp List</h1>
                <table class="data_table" border="1px">
                    <tr class="header">

                        <%-- <th><spring:message code="tbl.customerId"/></th> --%>
                        <th><spring:message code="tbl.customerName"/></th>
                        <th><spring:message code="tbl.empId"/></th>
                        <th><spring:message code="tbl.mrNo"/></th>
                        <th><spring:message code="tbl.phone1"/></th>
                        <th><spring:message code="tbl.callType"/></th>
                        <th><spring:message code="tbl.followupDate"/></th>
                        <th><spring:message code="tbl.status"/></th>
                        <th><spring:message code="tbl.lastModifiedDate"/></th>
                        <th><spring:message code="tbl.registrationStatus"/></th>
                        <th><spring:message code="tbl.dispositionName"/></th>
                        <th><spring:message code="tbl.createdBy"/></th>
                        <th>&nbsp;</th>
                        <%-- <th>&nbsp;</th> --%>
                    </tr>
                    <c:forEach items="${followupList}" var="item">
                        <c:choose>
                            <c:when test="${item.important==true}">
                                <tr style="background-color:#FDB543;">  
                                    <%--   <td><c:out value="${item.customerId}"/></td> --%>
                                    <td><c:out value="${item.customerName}"/></td>
                                    <td><c:out value="${item.empId}"/></td>
                                    <td><c:out value="${item.mrNo}"/></td>
                                    <td><c:out value="${item.phone1}"/></td>
                                    <td><c:out value="${item.callTypeName}"/></td>
                                    <td><fmt:formatDate value="${item.followupDate}" pattern="dd-MM-yy HH:mm"/></td>
                                    <td><c:out value="${item.status}"/></td>
                                    <td><fmt:formatDate value="${item.lastModifiedDate}" pattern="dd-MM-yy HH:mm"/></td>
                                    <td align="center"><c:out value="${item.registrationStatus}"/></td>
                                    <td><c:out value="${item.dispositionName}"/></td>
                                    <td><c:out value="${item.createdBy}"/></td>
                                    <td><a href="updateCustomer.htm?customerId=<c:out value="${item.customerId}"/>"><spring:message code="button.Update"/></a></td>
                                </tr>    
                            </c:when>
                            <c:otherwise>
                                <tr> 
                                    <td><c:out value="${item.customerName}"/></td>
                                    <td><c:out value="${item.empId}"/></td>
                                    <td><c:out value="${item.mrNo}"/></td>
                                    <td><c:out value="${item.phone1}"/></td>
                                    <td><c:out value="${item.callTypeName}"/></td>
                                    <td><fmt:formatDate value="${item.followupDate}" pattern="dd-MM-yy HH:mm"/></td>
                                    <td><c:out value="${item.status}"/></td>
                                    <td><fmt:formatDate value="${item.lastModifiedDate}" pattern="dd-MM-yy HH:mm"/></td>
                                    <td align="center"><c:out value="${item.registrationStatus}"/></td>
                                    <td><c:out value="${item.dispositionName}"/></td>
                                    <td><c:out value="${item.createdBy}"/></td>
                                    <td><a href="updateCustomer.htm?customerId=<c:out value="${item.customerId}"/>"><spring:message code="button.Update"/></a></td> 
                                </tr>
                            </c:otherwise>
                        </c:choose>
                    </c:forEach>
                </table>
            </form>
            <br/><br/>&nbsp;&nbsp;&nbsp;<c:out value="${fn:length(followupList)}"/> <spring:message code="rowsFound"/>
        </div>
    </body>
</html>

